function login(){
    var name = document.getElementById("inp1").value;
    var password = document.getElementById("inp2").value;
    if (name == "123" && password == "123"){
        alert("登录成功！")
    }
    else {
        alert("登录失败，账号或密码有误")
        document.getElementById("inp1").value='';
        document.getElementById("inp2").value="";
    }
}